# -*- coding: utf-8 -*
#!/usr/bin/env python

import config

from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp import template

from index_page import IndexPage
from result_page import ResultPage
from maintain_init_data_page import InitDataPage
from maintain_update_locations_page import UpdateLocationsPage
from query_spots_in_bound_page import QuerySpotsInBoundPage
from query_spots_in_category_page import QuerySpotsInCategoryPage
from query_spots_list_page import QuerySpotsListPage

_urls = [
    ('/', IndexPage),
    ('/result', ResultPage),
    ('/query_spots_in_bound', QuerySpotsInBoundPage),
    ('/query_spots_in_category', QuerySpotsInCategoryPage),
    ('/query_spots_list', QuerySpotsListPage),
]

if config.ENABLE_ADMIN:
    _urls.append(('/init', InitDataPage))
    _urls.append(('/update_locations', UpdateLocationsPage))

app = webapp.WSGIApplication(_urls, debug=config.ENABLE_DEBUG)
